﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Windows.Forms;
using Model.Enum;

namespace Controls
{
    public class PsDataGridViewCheckboxColumn : DataGridViewCheckBoxColumn
    {
        private PsDataType _colType;

        /// <summary>
        /// 字段类型
        /// </summary>
        public PsDataType ColType
        {
            get { return _colType; }
            set { _colType = value; }
        }

        private bool isQuery = true;

        public bool IsQuery
        {
            get { return isQuery; }
            set { isQuery = value; }
        }


        private string _otherName;

        /// <summary>
        /// 列别名
        /// </summary>
        public string OtherName
        {
            get { return _otherName; }
            set { _otherName = value; }
        }

        private bool _isRequie = false;

        public virtual bool IsRequie
        {
            get { return _isRequie; }
            set { _isRequie = value; }
        }

        private string _lable;

        public virtual string Lable
        {
            get { return _lable; }
            set { _lable = value; }
        }

        private string _editMode = "";

        public virtual string EditMode
        {
            get { return _editMode; }
            set { _editMode = value; }
        }

        private string _popKey;

        public string PopKey
        {
            get { return _popKey; }
            set { _popKey = value; }
        }

        private string _defaultValue;

        public string DefaultValue
        {
            get { return _defaultValue; }
            set { _defaultValue = value; }
        }

        private int _defaultWidth;

        /// <summary>
        /// 默认宽度，由于改变窗体大小时会改变GridView的ColumnMode,在改变成Fill后改变成None，原来的Width消失
        /// </summary>
        public int DefaultWidth
        {
            get { return _defaultWidth; }
            set { _defaultWidth = value; }
        }
    }
}
